{% extends 'base.html' %}
{% block title %}
    学生列表
{% endblock %}

{% block content %}
    <p class="mt-2">{{classname}}共有{{total_count}}名学生，今天是<span class="text-danger">王小丫</span>的生日,！</p>
    <nav aria-label="Page navigation example">
      <ul class="pagination justify-content-center">
        <li class="page-item active"><a class="page-link" href="#">今日</a></li>
        <li class="page-item"><a class="page-link" href="{% url 'core:week_manage' classid %}"">近一周</a></li>
        <li class="page-item"><a class="page-link" href="#">近一月</a></li>
        <li class="page-item"><a class="page-link" href="#">本学期</a></li>
      </ul>
    </nav>
    <h6 class="mt-2">总体情况</h6>
  
     <table class="table table-sm">
        <thead>
            <tr>
                <th>迟到记录</th>
                <th>
                    上午
                </th>
                <th>
                  下午
                </th>
                <th>
                   晚上
                </th>
                <th>请假</th>
                <th>早退</th>
                <th>违纪</th>
                <th>预警</th>
                <th>详细</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><i class="bi bi-check-lg text-success"></td>
                <td>10次</td>
                <td>10次</td>
                <td>10次</td>
                <td>10次</td>
                <td>0次</td>
                <td>0次</td>

                <td>0次</td>
                <th>
                     <a href="" class="btn btn-sm btn-success">查看</a>
                </th>
            </tr>
        </tbody>
          <thead>
            <tr>
                <th>没交作业</th>
                <th>语文</th>
                <th>数学</th>
                <th>英语</th>
                <th>物理</th>
                <th>化学</th>
                <th>生物</th>
                <th>详细</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><i class="bi bi-check-lg text-success"></td>
                <td>10人</td>
                <td>10人</td>
                <td>10人</td>
                <td>10人</td>
                <td>10人</td>
                <td>10人</td>
                <td>
                      <a href="" class="btn btn-sm btn-success">查看</a>
                </td>
            </tr>
        </tbody>
    </table>
    <h6 class="mt-2">具体情况：</h6>
    <table class="table table-sm">
        <thead >
            <tr>
                <th>学生姓名</th>
                <th>迟到</th>
                <th>作业没交</th>
                <th>请假</th> 
                <th>违纪</th>
                <th>表彰</th>
                <th>详细</th>
            </tr>
        </thead>
        <tbody>
            {% for item in late_list %}
                <tr>
                    <td>{{ item.name }}</td>
                    <td>{% if item.latecount %}
                        <span class="text-danger">{{item.latecount}}次</span>
                        {% else %}
                        <span class="text-success">无</span>
                        {% endif %}
                    </td>
                    <td>{% if item.no_homework_count %}
                        <span class="text-danger">{{item.no_homework_count}}次</span>
                        {% else %}
                        <span class="text-success">无</span>
                        {% endif %}
                    </td>
                    <td>{% if item.warning %}
                        <span class="text-danger">是</span>
                        {% else %}
                        <span class="text-success">否</span>
                        {% endif %}
                    </td>
                    <td></td>
                    <td></td>
                    <td>
                        <a href="{% url 'core:student_performance' student_id=item.student_id %}" class="btn btn-sm btn-success">查看</a>
                    </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
{% endblock %}
